package com.nondo.dean.dealer.controller.api.inner;

import com.nondo.dean.common.annotation.ApiVersion;
import com.nondo.dean.common.web.View;
import com.nondo.dean.dealer.domain.Activity;
import com.nondo.dean.dealer.service.ActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author xiaofan
 * @Description:
 * @throws
 * @date 2018-05-1616:40
 * @Version 0.1
 */
@RestController("apiInnerDealerActivity")
@RequestMapping("/{v}/inner/activity")
public class ActivityController {

    @Autowired
    ActivityService activityService;

    @ApiVersion(1)
    @RequestMapping("/update/activity/status")
    public void updateActivityStatus(HttpServletRequest request, HttpServletResponse response) {
        View<Integer> view = new View<Integer>(20000, "更新成功");

             activityService.updateActivityStauts(new Activity());

    }
}
